package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.example.bean.Orders;
import org.example.bean.Search;

import java.util.List;

@Mapper
public interface OrdersMapper {
    List<Orders> ordersAll();

    List<Orders> ordersType(@Param("o_type") String o_type,@Param("page") Integer page,@Param("pageSize") Integer pageSize);


    Integer total(String oType);

    Integer update(@Param("oType") String oType,@Param("oId") Integer oId);

    List<Orders> searchAll(@Param("search") Search search);

    List<Orders> jy(@Param("type") String type,@Param("oId") Integer oId);
    Integer fuel(@Param("oId") Integer oId,@Param("f") Integer f,@Param("oType") String oType);

    Integer pf(@Param("oId") Integer oId,@Param("oil") Integer oil,@Param("serve") Integer serve,@Param("other") Integer other);

    Integer yc(@Param("oId") Integer oId,@Param("info") String info);

    Integer status(Integer oId);

    List<Orders> ordersTypeScore(@Param("supplier") String supplier,@Param("o_type") String o_type,@Param("page") Integer page,@Param("pageSize") Integer pageSize);

    Integer totalScore(@Param("supplier") String supplier,@Param("oType") String oType);

    Integer totalThen();

    List<Orders> searchAllThen(@Param("search") Search search);

    List<Orders> ordersTypeThen(@Param("o_type") String o_type,@Param("page") Integer page,@Param("pageSize") Integer pageSize);

    Orders idSer(Integer oId);

    Integer updateSupplier(@Param("oId") Integer oId,@Param("supplier") String supplier);
}
